CREATE OR REPLACE
TRIGGER RANGED_WEAPON_RULES_TRIGGER
BEFORE INSERT ON RANGED_WEAPON_RULES
FOR EACH ROW WHEN (NEW.RANGED_WEAPON_RULE_ID IS NULL)
BEGIN
	SELECT RANGED_WEAPON_RULES_SEQ.NEXTVAL
	INTO :NEW.RANGED_WEAPON_RULE_ID
	FROM DUAL;
END;